package user

import (
	"trader/apps/user/handler"

	"github.com/gin-gonic/gin"
	"xorm.io/xorm"
)

func Init(router *gin.RouterGroup, engine *xorm.Engine) {
	h := handler.NewUserHandler(engine)
	router.POST("/debug", h.Debug)
	router.POST("/login", h.Login)
	router.POST("/register", h.Register)
}
